package com.yiji.fintech.musfinance.base.enums;

/**
    * 设备类型
    *
    */
public enum DeviceTypeEnum {

    IOS("IOS", "IOS设备"),

    ANDROID("ANDROID", "android设备"),

    ;

    DeviceTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static DeviceTypeEnum byCode(String code) {
        for (DeviceTypeEnum enums : DeviceTypeEnum.values()) {
            if (code.equalsIgnoreCase(enums.getCode())) {
                return enums;
            }
        }
        return null;
    }
}
